home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4724 < prev    next >
Encoding:
Text File  |  1996-08-05  |  3.9 KB  |  91 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: chang.unx.sas.com!walker
  3. From: walker@chang.unx.sas.com (Doug Walker)
  4. Subject: Re: Bought my SAS compiler yesterday
  5. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  6. Message-ID: <Dnqw70.C68@unx.sas.com>
  7. Date: Mon, 4 Mar 1996 13:30:36 GMT
  8. X-Nntp-Posting-Host: chang.unx.sas.com
  9. References: <68771787@0humpty.tomate.tng.oche.de>
  10. Organization: SAS Institute Inc.
  11.  
  12. In article <68771787@0humpty.tomate.tng.oche.de>,
  13. Andreas Mixich <humpty@TOMATE.TNG.OCHE.DE> wrote:
  14. > ╖ I will soon get a CD-ROM with the official OS3.1 includes from AT (on a
  15. >   german Amiga Mag's CD). Now I have noticed, that during the update
  16. >   processes, some standard includes were also processed. Shall I never
  17. >   replace my SAS/C includes ? (Besides that, there is a slightly newer
  18. >   release on some Fish CD-ROM)
  19.  
  20. It's perfectly OK to replace your system include files.  There should not
  21. be any problems, and if there are you can always reinstall the old ones
  22. from the floppies.
  23.  
  24. You should be able to just copy the new files over the old ones in the
  25. SC:INCLUDE directory.
  26.  
  27. > ╖ Is there an option to setup/define the size of the scsmsg error browser?
  28. >   I have it automatically start when starting my editor's C setup. The
  29. >   windowsizes are not ideal for me. Also I am missing an option to make
  30. >   the close button only hide, not exit the browser utility.
  31.  
  32. There is no option to change the size of SCMSG.  You can tell it to hide
  33. without exiting from AREXX, but not from the UI.
  34.  
  35. > ╖ After compiling a very simple example from the K&R
  36. >   (Fahrenheit2Celsius.c) and compiling it such as descriped in the
  37. >   according chapters for the debugger in the docs I wanted to try out the
  38. >   debugging. I shift clicked the Debug along with the Exe and got a Red
  39. >   Alert. This also happens with "Hello World.c" and all other programs I
  40. >   have tried. The debugger opens a CON, opens its screen, a window on it,
  41. >   which says: "<No source>" and the machine crashes. But - the source _is_
  42. >   in current directory, I also copyied the stdio.h (to go sure) to this
  43. >   dir. No way, I get bad crashes. I was never able to run the debugger :-(
  44. >   I do not use any MWB icons with ╗╗╗ Icon by Martin etc. ½½½½ in it.
  45. >   I launched from the original SAS icon.
  46.  
  47. First, make sure you click on the Debug icon FIRST, then hold down the SHIFT 
  48. key and double-click on the program.
  49.  
  50. Second, try running the program by itself and see if it works.  If it doesn't,
  51. you are probably crashing in the startup code before main(); this probably
  52. indicates an error in the way the program is linked, or possibly an
  53. autoinitializer or constructor error.  Use CPR -S from the command line to
  54. debug the startup code.
  55.  
  56. Third, try running CPR from the command line on the program.
  57.  
  58. >   If there should be interest, I will send a full report of my
  59. >   system-setup to one of the programmers. Please reply here or e-mail me,
  60. >   thanks.
  61.  
  62. If you need to do this, include
  63.  
  64.    *) The source code of the program
  65.    
  66.    *) The SCOPTS file
  67.    
  68.    *) Any command-line options used, or a detailed list of steps to
  69.       reproduce the problem from WorkBench.
  70.  
  71. >Some other thing would be of interest for me: I can not get the examples of
  72. >the K&R (2nd edition) be compiled. I get an error 73, but if I leave out
  73. >the stdio_protos or the stio.h this produces an error as well. How can I
  74. >avoid this ? I did not find a solution in the manual. The program I am
  75. >talking about is on the beginning of the book, when it comes to putchar()
  76. >(the simple copy examples).
  77.  
  78. You do not want to include stdio_protos.h if you also include stdio.h.
  79. Just include stdio.h.  Use the SC LINK command to link instead of SLINK,
  80. and don't add amiga.lib or any sc*.lib to the command line or to the
  81. SCOPTS file.
  82.  
  83. -- 
  84.   *****                    / walker@unx.sas.com
  85.  *|_o_o|\\     Doug Walker<  BIX, Portal: djwalker
  86.  *|. o.| ||                \ AOL: weissblau
  87.   | o  |//     
  88.   ====== 
  89. Any opinions expressed are mine, not those of SAS Institute, Inc.
  90.  
  91.